package main

import (
	"fmt"
	"path"
)

func main() {

	p := "./a.txt"

	fmt.Println(path.Base(p))
	fmt.Println(path.Ext(p))
	fmt.Println(path.Split(p))
}
